package org.example.rest;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.example.dto.*;
import org.springframework.web.bind.annotation.*;

@Slf4j
@Api(tags = "益智约课接口")
@RestController
public class WandouController {
    @ApiOperation(value = "益智（数学）可约课时间")
    @PostMapping("/route_dm/gateway/route__cc/api_admin.php/core/route__php_project_common/mvp/demo_lesson_plan")
    public WandouResp<DemoCourseTimeResp> demoLessonPlan(@RequestParam(name = "user_id", required = true) @ApiParam("豌豆ID") String user_id,
                                                         @RequestParam(name = "date", required = true) @ApiParam("预约课日期, yyyy-MM-dd格式") String date,
                                                         @RequestParam(name = "attend_class") @ApiParam("年级") String attend_class,
                                                         @RequestParam(name = "language") @ApiParam("语种, 可选：英语, 粤语, 中英, 中文") String language
                                                       ) {
        return null;
    }

    @ApiOperation(value = "益智（数学）用户已约课程列表")
    @PostMapping("/gateway/route__cc/api_admin.php/core/route__php_project_common/mvp/user_demo_lesson")
    public WandouResp<DemoCourseListResp> userDemoLesson(@RequestParam(name = "user_id", required = true) @ApiParam("豌豆ID") String user_id) {
        return null;
    }
    @ApiOperation(value = "益智（数学）预约益智试听课")
    @PostMapping("/route_dm/gateway/route__cc/api_admin.php/core/route__php_project_common/mvp/add_demo_lesson")
    public WandouResp<Void> addDemoLesson(@RequestBody WandouBookReq req) {
        return null;
    }

    @ApiOperation(value = "益智（数学）取消预约益智试听课")
    @PostMapping("/route_dm/gateway/route__cc/api_admin.php/core/route__php_project_common/mvp/cancel_demo_lesson")
    public WandouResp<Void> cancelDemoCancelDemo(@RequestBody WandouCancelBookReq req) {
        return null;
    }
}
